﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace PPI.Controls.Grid
{
    /// <summary>
    /// GridBaseEventArgs, stores ID and the selected view rows
    /// </summary>
    public class GridBaseEventArgs : EventArgs
    {
        private Int32 m_SelectedId;
        private DataGridViewRow m_SelectedRow;
        private object m_RowObject;


        public int SelectedId
        {
            get { return m_SelectedId; }
        }

        public DataGridViewRow SelectedRow
        {
            get { return m_SelectedRow; }
        }


        public object RowObject
        {
            get { return m_RowObject; }
        }

        public GridBaseEventArgs(int selectedId)
            : base()
        {
            m_SelectedId = selectedId;
        }

        public GridBaseEventArgs(int selectedId, DataGridViewRow drv)
            : this(selectedId)
        {
            m_SelectedRow = drv;
        }

        public GridBaseEventArgs(int selectedId, DataGridViewRow drv, object rowObject)
            : this(selectedId,drv)
        {
            m_RowObject = rowObject;
        }

    }
}
